<?php
/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/osl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magentocommerce.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magentocommerce.com for more information.
 *
 * @category   design_default
 * @package    Mage
 * @copyright  Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
 */
?>
<?php 
/**
 * @see Mage_Catalog_Block_Seo_Sitemap_
 */
?>
<?php 
//show the dynamic block
//$_block=Mage::getModel('cms/block')->load(11);
//echo $_block->getContent();
?>
<!--<?php $arrayname=array();?>
<?php $_items = $this->getCategoryCollection(); ?>
<span style="font-size: 12px; font-family: Century Gothic; color: rgb(8, 57, 105);padding-left: 20px; display: block;">
    	Category Finder<br/>
<?php if($_items->getSize()): ?>
        <?php foreach ($_items as $_item): ?>
            <?php if($_item->name):?>
            <?php if(!in_array($_item->name,$arrayname)):?>
            <?php $arrayname[]=$_item->name;?>
            &bull;&nbsp;&nbsp;&nbsp;<a href="<?php echo $this->getCategoryItemUrl($_item) ?>"><?php echo htmlspecialchars($_item->name); ?></a><br/>
            <?php endif;?>
            <?php else:?>
            <?php $menuflg=$_item->getIsMenu();?>
            <?php //echo $menuflg;?>
            <?php if($menuflg!=0):?>
            &bull;&nbsp;&nbsp;&nbsp;<a href="<?php echo $this->getUrl().$_item->getIdentifier() ?>"><?php echo htmlspecialchars($_item->getTitle()); ?></a><br/>
            <?php endif;?>
            <?php endif;?>
        <?php endforeach; ?>
<?php else: ?>
        <?php echo $this->__('There are no products available.'); ?>
<?php endif ?>
</span>
<br/>
-->
<?php unset($arrayname);$arrayname=array();?>
<?php $_items = $this->getProductCollection(); ?>
<span style="font-size: 12px; display: block;">
    	Product &amp; Services<br/>
<?php if($_items->getSize()): ?>
        <?php foreach ($_items as $_item): ?>
            <?php if($_item->name):?>
            <?php if(!in_array($_item->name,$arrayname)):?>
            <?php $arrayname[]=$_item->name;?>
            &bull;&nbsp;&nbsp;&nbsp;<a href="<?php echo $this->getProductItemUrl($_item) ?>"><?php echo htmlspecialchars($_item->name); ?></a><br/>
            <?php endif;?>
            <?php else:?>
            <?php $menuflg=$_item->getIsMenu();?>
            <?php //echo $menuflg;?>
            <?php if($menuflg!=0):?>
            &bull;&nbsp;&nbsp;&nbsp;<a href="<?php echo $this->getUrl().$_item->getIdentifier() ?>"><?php echo htmlspecialchars($_item->getTitle()); ?></a><br/>
            <?php endif;?>
            <?php endif;?>
        <?php endforeach; ?>
<?php else: ?>
        <?php echo $this->__('There are no products available.'); ?>
<?php endif ?>
</span>
<br/>
<?php unset($arrayname);$arrayname=array();?>
<?php $_items = Mage::getModel('cms/page')->getCollection()
		->addStoreFilter(Mage::app()->getStore()->getId())
		->addEnabledFilter()
		->setOrder('title ', 'asc');
?>
<span style=" display: block;">
    	Page Finder<br/>
<?php if($_items->getSize()): ?>
        <?php foreach ($_items as $_item): ?>
        <?php if($_item->getIdentifier()!='no-route'):?>
        &bull;&nbsp;&nbsp;&nbsp;<a href="<?php echo $this->getUrl().''.$_item->getIdentifier() ?>"><?php echo htmlspecialchars($_item->getTitle()); ?></a><br/>
        <?php endif;?>
        <?php endforeach; ?>
<?php else: ?>
        <?php echo $this->__('There are no products available.'); ?>
<?php endif ?>
</span>
<br/>

